//
//  MSRequsetClient.h
//  MSJD
//
//  Created by xiangbo on 2018/9/16.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MSResponseModel.h"
#import "MSRequestOperation.h"

NS_ASSUME_NONNULL_BEGIN

@interface MSRequsetClient : NSObject

@property (nonatomic, copy)NSString  *baseUrl;

+ (instancetype)shareInstance;

- (void)POST:(NSString *)url
      params:(NSDictionary *)params
   classType:(Class)classType
  completion:(MSCompletionBlock)completion;

- (void)getHomePageInfo:(void(^)(BOOL success, MSResponseData *data))completion;

- (void)getFoodPageInfo:(NSNumber *)kid completion:(void(^)(BOOL success, MSFoodData *data))completion;

- (void)getFilterList:(NSNumber *)kindId completion:(void(^)(BOOL success, MSListData *data))completion;

- (void)getFoodSearchResult:(NSDictionary *)params completion:(void(^)(BOOL success, MSFoodSearchData *data))completion;

- (void)getRestaurantDetail:(NSNumber *)rId completion:(void(^)(BOOL success, MSFoodDetailData *data))completion;

- (void)getRestaurantCommentList:(NSNumber *)rId page:(NSNumber *)page size:(NSNumber *)size completion:(void(^)(BOOL success, MSCommentlistData *data))completion;

- (void)publishComment:(NSDictionary *)params completion:(void(^)(BOOL success))completion;
@end

NS_ASSUME_NONNULL_END
